package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description:
 * @author: ZHaoYul
 * @date: 2021/9/10 15:58
 */
@Entity
@DynamicUpdate
@Table(name = "wx_bs_notify_info")   // 定义数据库表名
public class MerchantNotifyDetails implements UUIDDomain, Serializable {
    @Id
    private String id;
    //事件类型
    @Column(name = "event_type" )
    private String event_type;
    //券code
    @Column(name = "coupon_code" )
    private String coupon_code;
    //批次号
    @Column(name = "stock_id" )
    private String stock_id;
    //发放时间
    @Column(name = "send_time" )
    private Date send_time;
    //用户标识
    @Column(name = "openid" )
    private String openid;
    //用户统一标识
    @Column(name = "unionid" )
    private String unionid;

    //发放渠道
    @Column(name = "send_channel" )
    private String send_channel;

    //发券商户号
    @Column(name = "send_merchant" )
    private String send_merchant;
    //交易订单编号
    @Column(name = "transaction_id" )
    private String transaction_id;
    //支付有礼活动编号 或者 营销馆活动ID
    @Column(name = "act_code" )
    private String act_code;
    //营销馆ID
    @Column(name = "hall_code" )
    private String hall_code;
    //营销馆所属商户号
    @Column(name = "hall_belong_mch_id" )
    private Integer hall_belong_mch_id;
    //会员卡ID
    @Column(name = "card_id" )
    private String card_id;
    //会员卡code
    @Column(name = "code" )
    private String code;
    //会员活动ID
    @Column(name = "activity_id" )
    private String activity_id;

    @Column(name = "create_time" )
    private Date create_time;
    @Column(name = "update_time" )
    private Date update_time;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getEvent_type() {
        return event_type;
    }

    public void setEvent_type(String event_type) {
        this.event_type = event_type;
    }

    public String getCoupon_code() {
        return coupon_code;
    }

    public void setCoupon_code(String coupon_code) {
        this.coupon_code = coupon_code;
    }

    public String getStock_id() {
        return stock_id;
    }

    public void setStock_id(String stock_id) {
        this.stock_id = stock_id;
    }

    public Date getSend_time() {
        return send_time;
    }

    public void setSend_time(Date send_time) {
        this.send_time = send_time;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getSend_channel() {
        return send_channel;
    }

    public void setSend_channel(String send_channel) {
        this.send_channel = send_channel;
    }

    public String getSend_merchant() {
        return send_merchant;
    }

    public void setSend_merchant(String send_merchant) {
        this.send_merchant = send_merchant;
    }

    public String getTransaction_id() {
        return transaction_id;
    }

    public void setTransaction_id(String transaction_id) {
        this.transaction_id = transaction_id;
    }

    public String getAct_code() {
        return act_code;
    }

    public void setAct_code(String act_code) {
        this.act_code = act_code;
    }

    public String getHall_code() {
        return hall_code;
    }

    public void setHall_code(String hall_code) {
        this.hall_code = hall_code;
    }

    public Integer getHall_belong_mch_id() {
        return hall_belong_mch_id;
    }

    public void setHall_belong_mch_id(Integer hall_belong_mch_id) {
        this.hall_belong_mch_id = hall_belong_mch_id;
    }

    public String getCard_id() {
        return card_id;
    }

    public void setCard_id(String card_id) {
        this.card_id = card_id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(String activity_id) {
        this.activity_id = activity_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
